package com.yq.ylmall.model.cart;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yq.ylmall.enums.product.ProductCheck;
import com.yq.ylmall.enums.product.ProductStatus;
import com.yq.ylmall.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@TableName("cart_info")
@ApiModel(value="CartInfo对象", description="购物车")
public class CartInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "会员id")
    private Long userId;

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "商品sku类型")
    private Long skuType;

    @ApiModelProperty(value = "商品sku编号")
    private Long skuId;

    @ApiModelProperty(value = "商品sku名字")
    private String skuName;

    @ApiModelProperty(value = "放入购物车时价格")
    private BigDecimal cartPrice;

    @ApiModelProperty(value = "商品购买的数量")
    private Integer skuNum;

    @ApiModelProperty(value = "限购数量")
    private Integer perLimit;

    @ApiModelProperty(value = "图片文件")
    private String imgUrl;

    @ApiModelProperty(value = "线上状态：0-初始值，1-上架，-1-自主下架")
    private ProductStatus status;

    @ApiModelProperty(value = "审核状态：0-初始值，1-通过，-1-未通过")
    private ProductCheck isChecked;

    @ApiModelProperty(value = "仓库id")
    private Integer wareId;
}
